package com.admin.boot.modules.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;




import java.util.Date;



import java.io.Serializable;

/**
* (SysUser)实体类
*
* @author makejava
* @since 2024-01-12 14:51:54
*/
@Data
@TableName("sys_user")
@Accessors(chain = true)
public class SysUser implements Serializable {
private static final long serialVersionUID = -43316718241889750L;

    /**
    * 主键
    */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;

    /**
    * 创建时间
    */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
    * 更新时间
    */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
    * 用户名
    */
    @ApiModelProperty(value = "用户名")
    private String username;

    /**
    * 密码
    */
    @ApiModelProperty(value = "密码")
    private String password;

    /**
    * 生日
    */
    @ApiModelProperty(value = "生日")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date birthday;

    /**
    * 性别
    */
    @ApiModelProperty(value = "性别")
    private Integer sex;

    /**
    * 状态1正常 2禁用
    */
    @ApiModelProperty(value = "状态1正常 2禁用")
    private Integer status;

    /**
    * 电话
    */
    @ApiModelProperty(value = "电话")
    private String phone;

    /**
    * 头像
    */
    @ApiModelProperty(value = "头像")
    private String avatar;

    /**
    * 角色id
    */
    @ApiModelProperty(value = "角色id")
    private String roleId;

    /**
     * 角色id
     */
    @ApiModelProperty(value = "角色名称")
    @TableField(exist = false)
    private String roleName;

    /**
    * 部门id
    */
    @ApiModelProperty(value = "部门id")
    private String departmentId;


    @ApiModelProperty(value = "邮箱")
    private String email;


    @ApiModelProperty(value = "部门名称")
    @TableField(exist = false)
    private String departmentName;

}

